package com.kangdi.server.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.kangdi.server.pojo.Employee;
import com.kangdi.server.pojo.RespBean;
import com.kangdi.server.pojo.RespPageBean;

import java.time.LocalDate;
import java.util.List;

/**
 * <p>
 * InnoDB free: 7168 kB; (`departmentId`) REFER `yeb/t_department`(`id`); (`jobLeve 服务类
 * </p>
 *
 * @author kangdi
 * @since 2022-10-04
 */
public interface IEmployeeService extends IService<Employee> {
    /**
     * 查询员工信息(分页)
     * @param currentPage
     * @param size
     * @param employee
     * @param beginDateScope
     * @return
     */
    RespPageBean getEmployeeByPage(Integer currentPage, Integer size, Employee employee, LocalDate[] beginDateScope);

    /**
     * 获取最大员工号
     * @return
     */
    RespBean getMaxWorkID();

    /**
     * 添加员工
     * @param employee
     * @return
     */
    RespBean addEmployee(Employee employee);

    /**
     * 员工信息下载
     * @param o
     * @return
     */
    List<Employee> getEmployee(Integer id);

    /**
     * 查询所有员工的工资账套
     * @param currentPage
     * @param size
     * @return
     */
    RespPageBean getEmployeeWithSalary(Integer currentPage, Integer size);
}
